package net.zjitc.service.impl;

import net.zjitc.dao.CategorySecondDao;
import net.zjitc.dao.impl.CategorySecondDaoImpl;
import net.zjitc.pojo.CategorySecond;
import net.zjitc.service.CategorySecondService;

import java.util.List;

/**
 * Created by 沈银 on 2017/11/18.
 */
public class CategorySecondSerImpl implements CategorySecondService{
    CategorySecondDao dao=new CategorySecondDaoImpl();
    public List<CategorySecond> findAll() {
        return dao.findAll();
    }

    public int addCategorySecond(CategorySecond categorySecond) {
        return dao.addCategorySecond(categorySecond);
    }

    public CategorySecond findByCsid(String csid) {
        return dao.findByCsid(csid);
    }

    public int editCategorySecond(CategorySecond categorySecond) {
        return dao.editCategorySecond(categorySecond);
    }

    public int deleteCategorySecond(String csid) {
        return dao.deleteCategorySecond(csid);
    }
}
